Welcome![Sign In][Sign Up]
Location:
Search - TCP vc

Search list

[WinSock-NDISvc网络编程

Description: 关于vc网络编程的几个例子包括 收发送电子邮件、FTP上传下载、WINSOCK-UDP、WINSOCK-TCP-vc network programming on a few examples, including resumption send e-mail, FTP upload download, WINSOCK - UDP, WINSOCK-TCP, etc.
Platform: | Size: 252883 | Author: 白云城主 | Hits:

[TCP/IP stack飞鸽VC源码

Description: 著名的飞鸽传书VC的源码,供大家学习,不可作商业用途
Platform: | Size: 4168225 | Author: ifeng_xu@163.com | Hits:

[WinSock-NDISTCP实现客户服务器聊天程序

Description:

 

操作系统课程设计任务书


一、设计题目:多机进程通信

应用Socket进程通信技术编写聊天室程序,实现基于服务器的并发多机信息转发。如果各客户端在线则可以实时聊天、发送接收文件,如果某客户端离线,则发送给他的消息可由服务器端进行内容缓存,待重新连线后可以自动接收通过服务器转发的信息或文件。缓存与转发的控制算法可参考操作系统课程中生产者消费者进程同步方法、缓冲池技术等相关理论。
二、设计思路和功能的详细描述
采用TCP协议,所以属于客户机/服务器模式,因此需要聊天服务器端和聊天客户端两个程序,实现的功能是:任意一台装有客户端程序的计算机都可以通过服务器端的IP地址与服务器相连,然后进入聊天室与连接到服务器的其他客户进行聊天。当客户聊天结束时,可以点断开与服务器断开连接,以释放进程让其他等待的客户进入聊天室,本聊天室最大同时支持50个客户端的连接,如果服务器配置较高可以修改程序来增加同时连接数。
三、采用的方法、技术、运行环境及其配置
本聊天程序采用TCP协议,用VC++编写,属于客户机/服务器模式。采用了多线程的机制。其中使用windows Sockets实现多台计算机(多个进程)间的通信,SOCKET实际在计算机中提供了一个通信端口,可以通过这个端口与任何一个具有SOCKET接口的计算机通信。应用程序在网络上传输,接收的信息都通过这个SOCKET接口来实现。客户机/服务器模式中客户应用程序向服务器程序请求服务。一个服务程序通常在一个众所周知的地址监听对服务的请求,也就是说,服务进程一直处于休眠状态,直到一个客户对这个服务的地址提出了连接请求。在这个时刻,服务程序被“惊醒”并且为客户提供服务即对客户的请求作出适当的反应。本聊天程序就是基于这中思想实现的,程序分为两大部分:TCP聊天服务器端和TCP聊天客户端。两者都拥有各自的SOCKET接口,其中服务器端SOCKET接口需要绑定到固定地址上(实现语句:ock=Socket(AF_INET,SOCK_STREAM,0);),等待客户端的连接(实现语句:listen(sock,5);)。等待客户端的连接的过程就是通过多进程机制来实现的。
聊天程序是在VISUAL C++6.0上编译实现的,在WINDOWS2000,XP上测试运行成功。
对客户计算机配置无特殊要求,由于所设置的最大连接进程为50,所以对服务器要求也不高。
四、关键源程序及其详细的注释
<一>、服务器端
1
、Socket初始化
//
初始化对话框
BOOL CCSocketDlg::OnInitDialog()
{

count=0;

m_list.InsertColumn(0,"消息");

m_list.SetColumnWidth(0,435);

m_edit.SetLimitText(99);

.

.

.

.

 


Platform: | Size: 55808 | Author: lenjear | Hits:

[SourceCodeTCP服务器与客户端源代码

Description: 基于VC 6.0工程文件,测试TCP方式进行网络通信,包括服务器和客户端程序。
Platform: | Size: 138782 | Author: lbxu2008 | Hits:

[SourceCode基于VC的TCP聊天

Description: 基于VC的TCP聊天源码的实现.
Platform: | Size: 241281 | Author: zhcq8016@126.com | Hits:

[Internet-Network服务器客户tcpip

Description: VC++ 编写的基于TCP/IP协议的服务器客户端程序-VC compilation based on TCP/IP agreement server customer end procedure
Platform: | Size: 77824 | Author: cyz | Hits:

[Windows Developtcpip_terminal

Description: ip包监视器(VC)-ip packet monitors (VC)
Platform: | Size: 154624 | Author: 唯一 | Hits:

[Internet-Networkvchomwe_net

Description: 网络编程,主要是通讯开发:vc和tcp机制-network programming, mainly in telecommunications development : vc mechanism and tcp
Platform: | Size: 509952 | Author: 老吴 | Hits:

[Internet-Network用WINSOCK实现聊天室的VC

Description: Internet上可以提供一种叫IRC 的服务。使用者通过客户端的程序登录到IRC服务器上,就可以与登录在同一IRC服务器上的客户进行交谈,这也就是平常所说的聊天室。在这里,给出了一个在运行TCP/IP协议的网络上实现IRC服务的程序。-Internet can provide a service called IRC. Client users through the process log on to IRC servers, and can be logged on the same server on the IRC chat client, which is usually the chat rooms. Here is a running TCP/IP on the network to achieve the IRC service procedures.
Platform: | Size: 8192 | Author: 风清扬 | Hits:

[Internet-Network网络聊天:VC winsock-tcp

Description: 一个经典的socket套接字的程序!分为server和client两个部分! 利用CSocket发送消息!!值得新手学习socket的使用!-a classic socket socket procedures! Server and client divided into two parts! Use CSocket messaging! ! Newcomers should learn to use the socket!
Platform: | Size: 67584 | Author: teky | Hits:

[TCP/IP stack基于TCP的聊天室的简单实现_MyChat

Description: 基于TCP的简单的聊天室程序,适合初学者学习.用vc写的。-based on the simple TCP chat room procedures, suitable for beginners to learn. With vc writes.
Platform: | Size: 69632 | Author: 郑浩 | Hits:

[Internet-Networktcpip通讯程序

Description: vc编的tcp和udp服务器,客户端,很好用-vc series tcp and udp server, client, a very good use
Platform: | Size: 343040 | Author: | Hits:

[Windows Develop10TCPServer

Description: WINDOWS编程,一个用VC做成的TCP SERVER程序,对于WINSOCK入门者极为实用,有很高的参考价值-WINDOWS programme,a TCP SERVER programm made by VC,is very useful to the fresh person,and is worth referencing
Platform: | Size: 52224 | Author: 守望者 | Hits:

[Windows Develop嵌入式TCP-IP协议栈应用主机端程序(VC6源码)

Description: 嵌入式TCP-IP协议栈应用主机端程序(VC6源码)-embedded TCP-IP protocol stack, application- (VC6 source)
Platform: | Size: 109568 | Author: 张李忠 | Hits:

[uCOSucos及文件系统ucfs VC环境调试代码

Description: ucos是一个非常优秀的嵌入式操作系统,但作者只提供了bc下测试与调试代码,非常难于调试与学习,特别是初学者。vc是windows下非常优秀的IDE,如果把ucos移植到vc下运行,将非常方便ucos的调试与学习,有利于于ucos的推广。此项目的目的是希望能够把ucos及其相关的文件系统ucfs,GUI界面ucgui,网络tcp/ip都移植过来,方便广大爱好者学习。-CENTER is a very good embedded operating system, the author provides only a bc under test and debug code is very difficult to debug and learning, especially beginners. Vc under windows is excellent IDE, if transplanted to vc CENTER run, CENTER will be very convenient debugging and learning, is conducive to the promotion CENTER. The objective of this project is to be able to give CENTER and its related documents ucfs system, ucgui GUI interface, network tcp/ip all transplant, the majority of enthusiasts facilitate learning.
Platform: | Size: 243712 | Author: 测试 | Hits:

[TCP/IP stacktstsocket

Description: socket 编程和 evc4的tcp/ip通信,pc端的程序-evc4 socket programming and the tcp/ip communications, pc side of the process
Platform: | Size: 12288 | Author: 吴爱人 | Hits:

[Communicationtcpclient11

Description: 是vc网络编程的 一个例子,不错,建议看vc网络编程这本书需要的话,我再上传-vc network programming is an example of, yes, the proposed network programming vc see this book needs, I would like to upload
Platform: | Size: 12288 | Author: 陈映浩 | Hits:

[ICQ-IM-ChatTcp_Chat

Description: VC TCP winsocket 聊天程序 VC TCP winsocket 聊天程序-VC TCP winsocket chat program VC TCP winsocket chat program
Platform: | Size: 206848 | Author: king | Hits:

[GPS developGPRS-VC

Description: 该源程序是使用VC开发的基于GPS的全球定位系统的上位机界面,可以通过接受卫星数据进行全球定位。-The source code is developed by using VC-based Global Positioning System GPS-PC interface, you can accept the data from global positioning satellites.
Platform: | Size: 11064320 | Author: xuweitao | Hits:

[Com Port套接字程序(TCP)+

Description: 套接字程序(TCP)+ VC MFC SOCKET TCP CLIENT SERVER 通讯(VC MFC SOCKET TCP CLIENT SERVER Commuincation)
Platform: | Size: 63995904 | Author: wxdgk | Hits:
« 1 23 4 5 6 7 8 9 10 ... 42 »

CodeBus www.codebus.net